package cn.com.api.resultpage;

import java.math.BigDecimal;
import java.util.List;

public class InitShopDianPingPage {
	/** 平均评分 */
	private double score;
	/** 全部评价数量 */
	private Integer allCount;
	/** 1星评价数量 */
	private Integer oneCount;
	/** 2星评价数量 */
	private Integer twoCount;
	/** 3星评价数量 */
	private Integer threeCount;
	/** 4星评价数量 */
	private Integer fourCount;
	/** 5星评价数量 */
	private Integer fiveCount;
	/** 未回复的差评数量 */
	private Integer noReplyBadCount;
	/** 未回复的数量 */
	private Integer noReplyCount;

	// 客户端查询使用
	/** 好评数量 */
	private Integer goodCount;
	/** 差评数量 */
	private Integer badCount;
	/** 好评率 */
	private Double goodRate;

	/** 查询评价的总页数 */
	private Integer totalPage;
	/** 评价列表 */
	List<DianpingPage> dianPingList;

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		BigDecimal b = new BigDecimal(score);
		this.score = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public Integer getAllCount() {
		return allCount;
	}

	public void setAllCount(Integer allCount) {
		this.allCount = allCount;
	}

	public Integer getOneCount() {
		return oneCount;
	}

	public void setOneCount(Integer oneCount) {
		this.oneCount = oneCount;
	}

	public Integer getTwoCount() {
		return twoCount;
	}

	public void setTwoCount(Integer twoCount) {
		this.twoCount = twoCount;
	}

	public Integer getThreeCount() {
		return threeCount;
	}

	public void setThreeCount(Integer threeCount) {
		this.threeCount = threeCount;
	}

	public Integer getFourCount() {
		return fourCount;
	}

	public void setFourCount(Integer fourCount) {
		this.fourCount = fourCount;
	}

	public Integer getFiveCount() {
		return fiveCount;
	}

	public void setFiveCount(Integer fiveCount) {
		this.fiveCount = fiveCount;
	}

	public Integer getNoReplyBadCount() {
		return noReplyBadCount;
	}

	public void setNoReplyBadCount(Integer noReplyBadCount) {
		this.noReplyBadCount = noReplyBadCount;
	}

	public Integer getNoReplyCount() {
		return noReplyCount;
	}

	public void setNoReplyCount(Integer noReplyCount) {
		this.noReplyCount = noReplyCount;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public List<DianpingPage> getDianPingList() {
		return dianPingList;
	}

	public void setDianPingList(List<DianpingPage> dianPingList) {
		this.dianPingList = dianPingList;
	}

	public Integer getGoodCount() {
		return goodCount;
	}

	public void setGoodCount(Integer goodCount) {
		this.goodCount = goodCount;
	}

	public Integer getBadCount() {
		return badCount;
	}

	public void setBadCount(Integer badCount) {
		this.badCount = badCount;
	}

	public Double getGoodRate() {
		return goodRate;
	}

	public void setGoodRate(Double goodRate) {
		BigDecimal b = new BigDecimal(goodRate);
		this.goodRate = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

}
